package com.qyhl.module_practice.newhome;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeHomeMenuListBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeIsVolunteerBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeNewHomeBean;

import java.util.List;

public class PracticeNewHomePresenter implements PracticeNewHomeContract.PracticeNewHomePresenter {
    private PracticeNewHomeContract.PracticeNewHomeView mView;
    private PracticeNewHomeModel mModel;

    PracticeNewHomePresenter(PracticeNewHomeContract.PracticeNewHomeView mView) {
        this.mView = mView;
        this.mModel = new PracticeNewHomeModel(this);
    }

    @Override
    public void getMenu() {
        mModel.getMenu();
    }

    @Override
    public void getData(String instId, String phone) {
        mModel.getData(instId, phone);
    }

    @Override
    public void getIsVolunteer(String phone) {
        mModel.getIsVolunteer(phone);
    }

    @Override
    public void setMenuList(PracticeHomeMenuListBean beanList) {
        mView.setMenuList(beanList);
    }


    @Override
    public void setData(PracticeNewHomeBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void setIsVolunteer(PracticeIsVolunteerBean bean) {
        mView.setIsVolunteer(bean);
    }


}
